package com.lh.Service.Impl;

import com.lh.Service.GoodService;

import com.lh.bean.Good;
import com.lh.dao.GoodDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class GoodServiceImpl implements GoodService {
    @Resource
    private GoodDao goodDao;

    public Good queryGood(String good_name) {

        return goodDao.queryGood(good_name);
    }


    public List<Good> selectGoodsByBrandName(String brand_name) {
        return goodDao.selectGoodsByBrandName(brand_name);
    }

    public int getGoodsDiscount(Integer good_id, int[] detailIds) {
        return goodDao.getGoodsDiscount( good_id,detailIds);
    }

}
